/* 版心 */
.container {
    width: 1240px;
    height: 52px;
    margin: 0 auto;
}

.xtx-shortcut {
    height: 52px;
    background-color: #333;

    ul li {
        float: left;
        line-height: 52px;
        color: #666666;

        a {
            margin: 0 16px;
            font-size: 14px;
            color: #dcdcdc;
        }

        &:last-child {
            &::before {
                display: inline-block;
                content: "";
                width: 11px;
                height: 16px;
                background: url("../assets/images/sprites.png") -160px -70px;
                margin-right: 8px;
                margin-top: -3px;
                vertical-align: middle;
            }
        }
    }
}

.xtx-main-nav {
    height: 130px;
    padding-top: 30px;
    box-sizing: border-box;

    .logo {
        width: 207px;
        height: 70px;
        margin-left: 25px;
        margin-right: 40px;

        a {
            display: block;
            width: 207px;
            height: 70px;
            background: url("../assets/images/logo.png");
            background-size: 100% 100%;
            font-size: 0px;
        }
    }

    li {
        float: left;
        margin-right: 48px;
        line-height: 70px;

        a {
            &:hover {
                color: #27ba9b;
                border-bottom: 1px solid #27ba9b;
                padding-bottom: 7px;
            }
        }
    }

    .search {
        position: relative;

        input {
            width: 172px;
            height: 30px;
            line-height: 30px;
            border-bottom: 2px solid #e7e7e7;
            padding-left: 31px;
            color: #ccc;

            &::placeholder {
                color: #cccccc;
            }
        }

        &::before {
            position: absolute;
            left: 2px;
            top: 5px;
            content: "";
            height: 18px;
            width: 18px;
            background: url("../assets/images/sprites.png") -80px -70px;
        }
    }

    .cart {
        position: relative;
        width: 23px;
        height: 23px;
        background: url("../assets/images/sprites.png")-120px -70px;
        margin-top: 8px;
        margin-left: 15px;

        span {
            position: absolute;
            right: -16px;
            top: -5px;
            width: 20px;
            height: 15px;
            background-color: red;
            border-radius: 8px;
            text-align: center;
            line-height: 15px;
        }
    }
}

/* 底部 */
.xtx-service {
    height: 174px;
    background-color: #333;

    .container {
        width: 1393px;
        height: 174px;
        border-bottom: 1px solid #434343;

        a {
            float: left;
            width: 33.33%;
            height: 100%;
            text-align: center;
            line-height: 173px;
            font-size: 28px;
            color: #fff;

            &::before {
                display: inline-block;
                content: "";
                width: 58px;
                height: 58px;
                background: url("../assets/images/sprites.png") 0px 0px;
                margin-right: 19px;
                vertical-align: middle;
            }

            &>a:nth-child(2) {
                &::before {
                    background-position: -130px 0;
                }
            }

            &>a:nth-child(3) {
                &::before {
                    background-position: -64px 0;
                }
            }
        }
    }
}

/* 版权信息 */
.xtx-copyright {
    height: 170px;
    background-color: #333;

    .container {
        height: 170px;
        text-align: center;
        padding-top: 40px;
        box-sizing: border-box;
        text-align: center;
        color: #999;
        font-size: 14px;


        &>p:nth-child(1) {
            //margin-top:40px;
            height: 35px;
        }

        &>p:nth-child(1) a {
            color: #999
        }
    }
}

/*  */
.xtx-entry {
    height: 500px;
    background-color: #f5f5f5;

    .container {
        position: relative;
        height: 500px;
        .aside{
            position: absolute;
            left:0;
            top: 0;
            width: 251px;
            height:500px;
            background-color: #434343;
            li{
                height: 50px;
                line-height: 50px;
                padding-left: 36px;
                &::after{
                    position: absolute;
                    content: "";
                    right: 19px;
                    top: 19px;
                    width: 6px;
                    height: 11px;
                    background:url('../assets/images/sprites.png') -80px -110px;
                }
                span{
                    margin-left:15px;
                    font-size: 14px;
                }
                a{
                    color: #fff;
                }
                &:hover{
                    background-color: #27ba9b;
                }
            }
        }
        .prev{
            position: absolute;
            top: 228px;
            left: 260px;
            width:45px;
            height:45px;
            background:url('../assets/images/sprites.png') 14px -60px;
            border-radius: 50%;
        }
        .next{
            position: absolute;
            top: 228px;
            right: 10px;
            width:45px;
            height:45px;
            background:url('../assets/images/sprites.png') -21px -60px;
            border-radius: 50%;
        }
        .indicator{
            position: absolute;
            left:680px;
            bottom:31px;
            //width:110px;
            height:10px;
            li{
                float:left;
                width: 10px;
                height: 10px;
                background-color: #27ba9b;
                margin-right: 15px;
                border-radius: 50%;
                &>li:last-child{
                    margin-right: 0;
                }
            }
            .active{
                //color: red;
                background-color: #fff;
            }
        }
    }
}

/* 新鲜好物面板 */
.xtx-new-goods{
    height:519px;
    //background-color: pink;
    .goods-hd{
        height:114px;
        line-height: 114px;
        //background-color: #27ba9b;
        h2{
            float:left;
            font-size: 29px;
            font-weight: 400;
            height:114px;
            span{
                font-size:16px;
                color: #999;
                margin-right: 34px;
            }
        }
        .all{
            float:right;
            &::after{
                display: inline-block;
                content: "";
                width:7px;
                height:13px;
                background:url("../assets/images/sprites.png") 0 -110px;
                margin-left: 13px;
                vertical-align: middle;
            }
        }
    }

    .goods-list{
        height:405px;  
        li{
            height:405px;
            width:304px;
            float:left;
            margin-right: 6px;
            text-align: center;
            background-color: #f0f9f4;
            transition: .3s;
            position: relative;
            top: 0;
            &>li:last-child{
                margin-right: 0;
            } 
            &:hover{
                box-shadow: 0px 6px 6px 3px rgba(0 0 0/ 20%);
                top: -3px;
            }
            img{
                width:304px;
                height:305px
            }
            h3{
                height:40px;
                margin-top: 22px;
                font-size: 20px;
                font-weight: 400;
            }
            p{
                font-size: 23px;
                color: red;
                span{
                    font-size: 17px;
                }
            }

        }

    }
}